package com.billing.model.entity;



public class AccountBean{
    String WECHAT_URL="http://www.heimaoyc.com/heimao/";
    //司机
    public static final int DRIVER = 1;
    //货主
    public static final int SHIPPER = 2;

    //经纪人
    public static final int BROKER = 3;

    private Long id;

    private Long memberid;
    
	private String loginname;

    private String password;

    private String mobile;

    private Long status;

    private String email;

    private Integer ismobilebind = 0; // 默认值

    private Integer isemailbind  = 0; // 默认值

    private String securityquestion;

    private String linkman;

    private Long lastlogindate;

    private Integer mainaccount = 0;

    private Long provid = 0L; // 默认值

    private Long cityid = 0L; // 默认值

    private Long areaid = 0L; // 默认值

    private String address;

    private String face;

    private Integer sex = 0; // 默认值

    private String token;

    private Integer loginstatus;

    private String deviceno;

    private String devicetype;

    private String appversion;

    private String openid;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
//        super.setId(id);
    }

    public Long getMemberid() {
        return memberid;
    }

    public void setMemberid(Long memberid) {
        this.memberid = memberid;
//        super.setMemberID(memberid);
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname == null ? null : loginname.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
//        super.setStatus(status);
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getIsmobilebind() {
        return ismobilebind;
    }

    public void setIsmobilebind(Integer ismobilebind) {
        this.ismobilebind = ismobilebind;
    }

    public Integer getIsemailbind() {
        return isemailbind;
    }

    public void setIsemailbind(Integer isemailbind) {
        this.isemailbind = isemailbind;
    }

    public String getSecurityquestion() {
        return securityquestion;
    }

    public void setSecurityquestion(String securityquestion) {
        this.securityquestion = securityquestion == null ? null : securityquestion.trim();
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman == null ? null : linkman.trim();
    }

    public Long getLastlogindate() {
        return lastlogindate;
    }

    public void setLastlogindate(Long lastlogindate) {
        this.lastlogindate = lastlogindate;
    }

    public Integer getMainaccount() {
        return mainaccount;
    }

    public void setMainaccount(Integer mainaccount) {
        this.mainaccount = mainaccount;
    }

    public Long getProvid() {
        return provid;
    }

    public void setProvid(Long provid) {
        this.provid = provid;
    }

    public Long getCityid() {
        return cityid;
    }

    public void setCityid(Long cityid) {
        this.cityid = cityid;
    }

    public Long getAreaid() {
        return areaid;
    }

    public void setAreaid(Long areaid) {
        this.areaid = areaid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face == null ? null : face.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }

    public Integer getLoginstatus() {
        return loginstatus;
    }

    public void setLoginstatus(Integer loginstatus) {
        this.loginstatus = loginstatus;
    }

    public String getDeviceno() {
        return deviceno;
    }

    public void setDeviceno(String deviceno) {
        this.deviceno = deviceno == null ? null : deviceno.trim();
    }

    public String getDevicetype() {
        return devicetype;
    }

    public void setDevicetype(String devicetype) {
        this.devicetype = devicetype == null ? null : devicetype.trim();
    }

    public String getAppversion() {
        return appversion;
    }

    public void setAppversion(String appversion) {
        this.appversion = appversion == null ? null : appversion.trim();
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    public String getDbName() {
        return "user_accounts";
    }

    public String bgetFace60(){
//		return ApplicationContext.getWebServiceUrl() + "/imgView.shtml?p=u/"+this.id+"/60_"+this.face;
        return WECHAT_URL + "/imgView.shtml?p=u/"+this.id+"/60_"+this.face;
    }
    public String bgetFace120(){
//		return ApplicationContext.getWebServiceUrl() + "/imgView.shtml?p=u/"+this.id+"/120_"+this.face;
        return WECHAT_URL + "/imgView.shtml?p=u/"+this.id+"/120_"+this.face;
    }
    public String bgetFace(){
//		return ApplicationContext.getWebServiceUrl() + "/imgView.shtml?p=u/"+this.id+"/"+this.face;
        return WECHAT_URL  + "/imgView.shtml?p=u/"+this.id+"/"+this.face;
    }
}